// import { hi } from "./m.js";
let a = 10;
// console.log(hi);

document.getElementById("box1");

function fn(a: number, b: number) {
  return a + b;
}

function fn2(this: Window) {
  alert(this);
}

// let box1 = document.getElementById("box1");
// if (box1 !== null)
//   box1.addEventListener("click", function () {
//     alert("hello");
//   });

let box1 = document.getElementById("box1");
box1?.addEventListener("click", () => {
  alert("hello");
});
